package org.firebug.spring.boot.activemq.listener;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.messaging.handler.annotation.Headers;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class ConsumerListener {
    @JmsListener(destination = "salesBillUploadDeal")
    public void consumer(@Headers Map<String, String> header, String message) {
        System.out.println("header: " + header);
        System.out.println("message: " + message);
    }
}
